package com.oneonefive.trainticketsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oneonefive.trainticketsystem.pojo.Ticket;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface TicketMapper extends BaseMapper<Ticket> {

    boolean insertTicket(Ticket ticket);
    boolean updateTicket(Ticket ticket);
    List<Ticket> selectTicketByTrainId(Integer ticketId,Integer trainId,String coachNo,String seatNo,Integer sold,Integer rowCount);
    int getTicRowCount(Integer ticketId,Integer trainId,String coachNo,String seatNo,Integer sold);
    boolean soldTic(Integer ticketId);
    boolean refundTic(Integer ticketId);
}




